import React, { Component } from 'react'
import RouterLink from '../../router/routerLink'
// import { Switch, Route, Redirect } from 'react-router-dom'
import RouterView from '../../router/routerView'
// import routes from '../../router/routes'

export default class Home extends Component {
  render() {
    const { routesChildren } = this.props
    console.log(this.props, 'props')
    return (
      <div>
        {/* 一级路由 */}
        Home
        {/* 二级路由 routerChildren传参*/}
        <RouterView routes={routesChildren}></RouterView>
        {/* 二级导航 */}
        <RouterLink routes={routesChildren}></RouterLink>
      </div>
    )
  }
}
